package com.oamicnet.boot.config.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 批量绑定配置文件属性到 Java Bean
 */
@Component
@ConfigurationProperties("my.app")
@Data
public class MyAppProperties {
    private String name;
    private String version;
    private List<String> authors;
    private Map<String, String> info;
}
